/*
 * @Author: your name
 * @Date: 2021-12-20 21:06:47
 * @LastEditTime: 2021-12-20 21:39:31
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\50htmljs\rotating\script.js
 */
const open = document.getElementById('open')
const close = document.getElementById('close')
const container = document.querySelector('.container')

var a  = open.addEventListener('click',()=>{
    container.classList.add('show-nav')
    // console.log(container)
})
// console.log(a)
// open.addEventListener('click', () => container.classList.add('show-nav'))


close.addEventListener('click', () => container.classList.remove('show-nav'))

// const open = document.getElementById('open')
// const close = document.getElementById('close')
// const container = document.querySelector('.container')

// open.addEventListener('click', () => container.classList.add('show-nav'))

// close.addEventListener('click', () => container.classList.remove('show-nav'))

